package cn.kgc.crowd1048.fundingadmin.service;

import cn.kgc.crowd1048.fundingadmin.pojo.Auth;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zwr
 * @since 2024-04-24
 */
public interface AuthService extends IService<Auth> {

    public List<Auth> getAllAuth();
    //根据角色查询权限id
    public List<Integer> getAssignedAuthIdList(Integer roleId);

    //分配权限
    public void updateRelationShipBetweenRoleAndAuth(Map<String, List<Integer>> assignDataMap);

    //根据角色查询权限
    public List<Auth> selectByRoleIds(List<Integer> roleIds);


}
